﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QUANLYKHACHSAN_N4
{
    public partial class Dialog : Form
    {
        public Dialog()
        {
            InitializeComponent();
        }
        public Dialog(string Message)
        {
            InitializeComponent();
            label1.Text = Message;
            if (this.Width < (label1.Width + 100))
                this.Width = label1.Width + 100;
        }
        public Dialog(string Message, bool OKCancel)
        {
            InitializeComponent();
            btnCancel.Visible = OKCancel;
            label1.Text = Message;
            if (this.Width < (label1.Width + 100))
                this.Width = label1.Width + 100;
        }
        public Dialog(string Message, string title, bool OKCancel)
        {
            InitializeComponent();
            btnCancel.Visible = OKCancel;
            groupPanel1.Text = title;
            label1.Text = Message;
            if (this.Width < (label1.Width + 100))
                this.Width = label1.Width + 100;
        }
    }
}
